package com.gitee.wsl.common.draw.area.animation

import com.gitee.wsl.common.draw.area.Viewport


interface ChartViewportAnimator {
    val isAnimationStarted: Boolean

    fun startAnimation(startViewport: Viewport, targetViewport: Viewport, duration: Long = FAST_ANIMATION_DURATION)
    fun cancelAnimation()

    fun setChartAnimationListener(animationListener: ChartAnimationListener?)

    companion object {
        const val FAST_ANIMATION_DURATION = 300L
    }
}